package com.tc.dispatch.web.csservice;

/**
 * <p>Title: tcweb</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2007</p>
 * <p>Company: zju</p>
 * @author  jackyjia
 * @version 1.0
 */
import java.util.*;
import java.text.*;
import javax.ejb.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.tc.dispatch.csservice.util.*;
import com.tc.dispatch.csservice.ejb.*;
import com.tc.dispatch.csservice.exception.*;
import com.tc.dispatch.web.util.JNDINames;
import com.tc.dispatch.web.util.ServiceLocator;
import com.tc.dispatch.web.util.ServiceLocatorException;
import com.tc.dispatch.web.exception.*;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.*;

public class csHelper {
  public static
      CSServiceLocal getCSServiceLocal() {
    ServiceLocator sl = ServiceLocator.getInstance();
    try {
      return ( (CSServiceLocalHome) sl.getEJBLocalHome(JNDINames.CSService_EJB_LOCAL
          )).create();
    }
    catch (CreateException ce) {
      throw new WEBSysException("CreateException found.", ce);
    }
  }


}